home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / KlingonBGApp.sit / Klingon BG App / Source / speechUtil.h < prev    next >
Text File  |  1997-06-28  |  1KB  |  64 lines

  1. // Source code for Klingon Clock.   Copyright (C) 1996-1997
  2. // Charles H. Hemstreet IV
  3. //
  4. // Started at MacHack 1996
  5. // Completed at MacHack 1997
  6. //
  7. // Best thanks to:
  8. // My wife Regie, son Chad and baby
  9. // Other thanks to Elden Wood and Bob Clark
  10. //
  11. // This code is distributed "as-is" and implies no warranty or guarantee.
  12.  
  13.  
  14. #ifndef __SPEECHUTIL__
  15. #define __SPEECHUTIL__
  16.  
  17. #ifndef __ASSERT__
  18. #include <Assert.h>
  19. #endif
  20.  
  21.  
  22.  
  23.  
  24. // EXTERNAL PROTOTYPES
  25. extern OSErr     openSndChannel(void);
  26. extern OSErr     LoadBufferSounds(void);
  27. extern void        waitCloseChannel(void);
  28. extern OSErr    doPlayASound (short soundID, short priority);
  29.  
  30. // prototypes
  31. OSErr     speakSentence(short *, short *, short *);
  32. OSErr     makeSentence(short *, short *, short *, short *);
  33. OSErr     doSuccessSound(void);
  34.  
  35. enum timeLength
  36. {
  37.     kNone,
  38.     kHours,
  39.     kHoursMinutes,
  40.     kHrMinSecond
  41. };
  42.  
  43. enum eSounds
  44. {
  45.     kZero,
  46.     kOne,
  47.     kTwo,
  48.     kThree,
  49.     kFour,
  50.     kFive,
  51.     kSix,
  52.     kSeven,
  53.     kEight,
  54.     kNine,
  55.     kTen,
  56.     kKaplah,
  57.     kTime
  58. };
  59.  
  60. #define kPriority 0
  61.  
  62.  
  63. #endif //__SPEECHUTIL__
  64.